import http from './http.js';

let post = (url, params) => {
    return new Promise((resolve, reject) => {
        http.post(url, params)
            .then((res) => {
                resolve(res);
            })
            .catch((err) => {
                reject(err);
            });
    });
};

const api = {
    post,
};

export default api;
